home *** CD-ROM | disk | FTP | other *** search
/ PC PowerPlay 49 / PCPP49a.iso / editors / sofsdk / SoF SDK.msi / _B5C4E13B90714A77A6B0D00038F89659 < prev    next >
Encoding:
Text File  |  2000-03-27  |  4.1 KB  |  100 lines

  1. #include "../common/header.ds"
  2. output "p:/base/ds/tsr1"
  3.  
  4. /////////////////////////////////////////////////
  5. // Declare
  6.  
  7. local entity stall1
  8. local entity stall2
  9. local entity new_kick_stall // the new stall kick that Brian wanted in
  10. local entity new_kick_stall_push // push brush that will simulate force when the door is kicked open
  11. local entity backbystairs // trigger that needs to be hit when leaving ladies room
  12. local entity lstallguy1 // the first guy in the ladies room stall
  13. local entity lstallguy2 // the sec guy in the ladies rooms stall
  14. local entity lstallguy3 // the newest guy in the stall sequence
  15. local entity setup // this sets up the ambush on the way out
  16. local entity stallshooter // the guy who will shoot the stall on the way out
  17. local entity originalwall // the func_wall clean version stall that needs to be taken out for the ambush
  18. local entity raf_clipdoor // the func wall clip brush for the bathroom door
  19. local entity new_clip_stall // the clip brush func wall that will provide collision for when the door is kicked open
  20. local int sig1
  21. local int sig2
  22.  
  23. /////////////////////////////////////////////////
  24. // Assign
  25.  
  26. stall1 = find entity with targetname "stall1"
  27. stall2 = find entity with targetname "stall2"
  28. new_kick_stall = find entity with targetname "new_kick_stall"
  29. new_kick_stall_push = find entity with targetname "new_kick_stall_push"
  30. backbystairs = find entity with targetname "backbystairs"
  31. lstallguy1 = find entity with targetname "lstallguy1"
  32. lstallguy2 = find entity with targetname "lstallguy2"
  33. lstallguy3 = find entity with targetname "lstallguy3"
  34. stallshooter = find entity with targetname "stallshooter"
  35. setup = find entity with targetname "setup"
  36. originalwall = find entity with targetname "originalwall"
  37. raf_clipdoor = find entity with targetname "raf_clipdoor"
  38. new_clip_stall = find entity with targetname "new_clip_stall"
  39.  
  40. /////////////////////////////////////////////////
  41. // Action
  42.  
  43. // THE FIRST STALL GUY
  44. if lstallguy1.health > 0
  45.  
  46.   animate entity lstallguy1 performing action STD_XKICKDOOR_N_A_A // signaling sig1
  47.   wait .25 seconds // mmm the magic delay
  48.   moverotate entity stall1 from file "gbnyc_stall.rof"// signaling sig2
  49.   play sound "impact/door/kickdoor.wav" for entity stall1 at volume 0.9
  50.   // wait 0.5 seconds
  51.   //wait for all clearing sig1, sig2
  52.   animate entity lstallguy1 performing action STD_R_N_MRS_2 by moving [-64, 0, 0] 
  53.   animate entity lstallguy1 performing action SCRIPT_RELEASE
  54.  
  55. endif
  56.  
  57. // THE SECOND STALL GUY
  58.  
  59. if lstallguy2.health > 0
  60.   
  61.    animate entity lstallguy2 performing action STD_XKICKDOOR_N_A_A //signaling sig1
  62.    wait .25 seconds
  63.    moverotate entity stall2 from file "generic_door_cw.rof" //signaling sig2
  64.    play sound "impact/door/kickdoor.wav" for entity stall2 at volume 0.9
  65.    use entity new_clip_stall // triggers the funcwall in for clipping
  66.    //wait for all clearing sig1, sig2
  67.    animate entity lstallguy2 performing action STD_R_N_MRS_2 by moving [-64, 0, 0] 
  68.    animate entity lstallguy2 performing action SCRIPT_RELEASE
  69. //    use entity backbystairs
  70.  
  71. endif
  72.     
  73. wait 1 seconds // stall for the last guy to kick the stall
  74.  
  75. // THE THIRD STALL GUY
  76.  
  77. if lstallguy3.health > 0
  78.  
  79.    animate entity lstallguy3 performing action STD_XKICKDOOR_N_A_A //signaling sig1
  80.    wait .25 seconds
  81.    use entity new_kick_stall_push // triggers the push brush
  82.    wait .2 seconds
  83.    use entity new_kick_stall_push // shuts the stall push brush off
  84.    moverotate entity new_kick_stall from file "generic_door_ccw.rof" //signaling sig2
  85.    use entity raf_clipdoor // triggers the clip hull in
  86.    play sound "impact/door/kickdoor.wav" for entity stall2 at volume 0.9
  87.    //wait for all clearing sig1, sig2
  88.    animate entity lstallguy3 performing action STD_R_N_MRS_2 by moving [64, 0, 0] 
  89.    animate entity lstallguy3 performing action SCRIPT_RELEASE
  90.  
  91. endif
  92.  
  93. use entity setup // activates the trigger for the stall shooting guy
  94. use entity stallshooter // spawns the skinhead in behind the front partition
  95. // use entity originalwall // this should remove the func_wall
  96.  
  97. animate entity stallshooter performing action SCRIPT_RELEASE
  98.  
  99.  
  100. // End